package baseClass;

import android.graphics.Bitmap;
import mainSrc.MainDirector;

public class Sprite_Touch
  extends Sprite_Default
{
  protected boolean DownAndUp = false;
  
  public Sprite_Touch(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2)
  {
    super(paramInt1, paramInt2, paramInt3, paramFloat1, paramFloat2);
    this.state = 2;
  }
  
  public boolean Touch_Check(float paramFloat1, float paramFloat2)
  {
    boolean bool = false;
    if (this.bit_img != null)
    {
      if ((paramFloat1 >= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax) && (paramFloat2 >= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay) && (paramFloat1 <= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * (this.position_ax - 1.0F)) && (paramFloat2 <= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * (this.position_ay - 1.0F))) {
        bool = true;
      }
    }
    else {
      return bool;
    }
    this.DownAndUp = false;
    Touch_RangeOut();
    return false;
  }
  
  public void Touch_Down(float paramFloat1, float paramFloat2, MainDirector paramMainDirector) {}
  
  public void Touch_DownAndUp(float paramFloat1, float paramFloat2, MainDirector paramMainDirector) {}
  
  public void Touch_Move(float paramFloat1, float paramFloat2, MainDirector paramMainDirector) {}
  
  public void Touch_RangeOut() {}
  
  public void Touch_Up(float paramFloat1, float paramFloat2, MainDirector paramMainDirector) {}
  
  public void onTouch_Down(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    this.DownAndUp = true;
    Touch_Down(paramFloat1, paramFloat2, paramMainDirector);
  }
  
  public void onTouch_Move(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    Touch_Move(paramFloat1, paramFloat2, paramMainDirector);
  }
  
  public void onTouch_Up(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    if (this.DownAndUp)
    {
      Touch_Up(paramFloat1, paramFloat2, paramMainDirector);
      Touch_DownAndUp(paramFloat1, paramFloat2, paramMainDirector);
    }
    for (;;)
    {
      this.DownAndUp = false;
      return;
      Touch_Up(paramFloat1, paramFloat2, paramMainDirector);
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Sprite_Touch
 * JD-Core Version:    0.7.0.1
 */